package com.timguan.render.api.entity.cms;

import net.pocrd.annotation.Description;

import java.io.Serializable;
import java.util.List;

/**
 * Created by gkq on 15/11/6.
 */
@Description("模块级别数据（ModuleDataList）")
public class MData implements Serializable {
    @Description("模块标类型")
    public enum HeadType {
        @Description("标题居中")
        CENTER,
        @Description("居左")
        LEFT,
        @Description("居右")
        RIGHT;
    }

    @Description("模块页内标识")
    public String mId;
    @Description("模块类型")
    public String mType;
    @Description("标题")
    public String title;
    @Deprecated
    @Description("Deprecated子标题（右侧标题）,see mdescription")
    public String subtitle;
    @Description("右侧链接")
    public String rightLink;
    @Description("模块标类型")
    public HeadType headType = HeadType.CENTER;
    @Description("模块描述")
    public String mDescription;
    @Description("模块LOGO")
    public String mLogo;
    @Description("模块样式")
    public Style style;
    @Description("子模块数据")
    public List<SubMData> subMDatas;
    @Description("短描述")
    public String mSDescription;
    @Description("特殊内容")
    public String specialContent;


    @Override
    public String toString() {
        return "MData{" +
                "mId='" + mId + '\'' +
                ", mType='" + mType + '\'' +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", rightLink='" + rightLink + '\'' +
                ", headType=" + headType +
                ", mDescription='" + mDescription + '\'' +
                ", mLogo='" + mLogo + '\'' +
                ", style=" + style +
                ", subMDatas=" + subMDatas +
                '}';
    }
}
